<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改工作提醒')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ncWorkNotice-edit" th:object="${ncWorkNotice}">
            <input id="workNoticeId" name="workNoticeId" th:field="*{workNoticeId}"  type="hidden">

			<div class="form-group">
				<label class="col-sm-3 control-label">工作内容：</label>
				<div class="col-sm-8">
					<input id="content" name="content" th:field="*{content}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">时间点：</label>
				<div class="col-sm-8">
					<input id="time" name="time" th:field="*{time}" class="form-control" type="text">
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">工作类型</label>
				<div class="col-sm-8">
					<select name="workType" class="form-control m-b" th:with="type=${@dict.getType('cow_workType')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
								th:field="*{workType}"
						></option>

					</select>

					<!--<input id="workType" name="workType" th:field="*{workType}" class="form-control" type="text">-->
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">循环周期(天)：</label>
				<div class="col-sm-8">
					<input id="cycleDays" name="cycleDays" th:field="*{cycleDays}" class="form-control" type="number">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">日期：</label>
				<div class="col-sm-8">
					<input id="createTime" data-format="yyyy-MM-dd HH:mm:ss" data-type="datetime" required name="createTime" placeholder="请选择时间"
						   th:value="*{#dates.format(createTime, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text" th:class="time-input" >

					<!--<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">-->
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">创建人：</label>
				<div class="col-sm-8">
					<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<textarea id="remark" name="remark" th:field="*{remark}" class="form-control" type="text" rows="4"> </textarea>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/ncWorkNotice";
		$("#form-ncWorkNotice-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});

		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-ncWorkNotice-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
